package cn.yitun.chat.yitunservercommonlib.converter.dto2po.contact;

import cn.yitun.chat.yitunservercommonlib.dataentity.dto.contact.ContactAddApplyDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.po.contact.ContactAddApplyInfo;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 加好友回复
 */
@Mapper(componentModel = "spring")
public interface ContactAddApplyDto2PoConverter {

    ContactAddApplyDto2PoConverter INSTANCE = Mappers.getMapper(ContactAddApplyDto2PoConverter.class);

    ContactAddApplyDto do2dto(ContactAddApplyInfo info);

    List<ContactAddApplyDto> do2dto(List<ContactAddApplyInfo> doList);

    @InheritInverseConfiguration
    ContactAddApplyInfo dto2do(ContactAddApplyDto dto);
    @InheritInverseConfiguration
    List<ContactAddApplyInfo> dto2do(List<ContactAddApplyDto> dtoList);

}
